package com.common.project.converter;

import com.common.project.dto.JobDTO;
import com.common.project.mapper.EntityConverter;
import com.common.project.table.Job;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;

@Mapper(componentModel = "spring",uses = {DeptConverter.class},unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface JobConverter extends EntityConverter<JobDTO, Job> {
    @Mapping(source = "deptSuperiorName", target = "deptSuperiorName")
    JobDTO toDto(Job job, String deptSuperiorName);
}
